package com.practice.system.service.impl;

import com.practice.system.mapper.PAndmMapper;
import com.practice.system.pojo.pAndm;
import com.practice.system.service.PAndmService;
import com.practice.utils.PageUtils;
import com.practice.utils.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class pAndmServiceImpl implements PAndmService {
    @Autowired
    PAndmMapper pAndmMapper;
    @Override
    public R list(Map<String, Object> params) {
        List<pAndm> list = pAndmMapper.list(params);
        PageUtils pageUtils = new PageUtils(list,list.size());
        return R.ok().put("page",pageUtils);
    }
}
